<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:69:"F:\liudian\fly_forum\public/../application/admin\view\User\index.html";i:1520416906;s:53:"F:\liudian\fly_forum\application\admin\view\base.html";i:1520384633;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title><?php echo $title; ?></title>
    <link rel="stylesheet" href="/fly_forum/public/static/layui/css/layui.css">
    <script src="/fly_forum/public/static/jq1.8.3.mini.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo"><?php echo $title; ?></div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="<?php echo url('Index/index'); ?>">网站后台</a></li>
            <li class="layui-nav-item"><a href="<?php echo url('User/index'); ?>">用户中心</a></li>
            <li class="layui-nav-item"><a href="<?php echo url('Card/index'); ?>">帖子列表</a></li>
            <li class="layui-nav-item"><a href="<?php echo url('Conf/index'); ?>">系统设置</a></li>
            <!--<li class="layui-nav-item">-->
                <!--<a href="javascript:;">其它系统</a>-->
                <!--<dl class="layui-nav-child">-->
                    <!--<dd><a href="">邮件管理</a></dd>-->
                    <!--<dd><a href="">消息管理</a></dd>-->
                    <!--<dd><a href="">授权管理</a></dd>-->
                <!--</dl>-->
            <!--</li>-->
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item"><a href="<?php echo url('Index/Index/index'); ?>">网站首页</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    <?php echo $admin['name']; ?>
                </a>
                <dl class="layui-nav-child">
                    <!-- <dd><a href="">基本资料</a></dd> -->
                    <dd><a href="<?php echo url('Conf/pwd'); ?>">修改密码</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="<?php echo url('Logindo/loginout'); ?>">退出</a></li>
        </ul>
    </div>

    
<div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree"  lay-filter="test">
            <li class="layui-nav-item layui-nav-itemed"><a href="">用户列表</a></li>
        </ul>
    </div>
</div>


    
<div class="layui-body" >
    <table class="layui-table" style="margin-top: 0px">
      <colgroup>
        <col width="80">
        <col width="150">
        <col width="150">
        <col width="150">
        <col width="150">
        <col width="150">
        <col width="150">
        <col width="150">
        <col width="150">
      </colgroup>
      <thead>
        <tr>
          <th>ID</th>
          <th>昵称</th>
          <th>email</th>
          <th>性别</th>
          <th>城市</th>
          <th>等级</th>
          <th>金币</th>
          <!-- <th>注册时间</th> -->
          <th>操作</th>
        </tr> 
      </thead>
      <tbody>
        <?php if(is_array($userList) || $userList instanceof \think\Collection || $userList instanceof \think\Paginator): if( count($userList)==0 ) : echo "" ;else: foreach($userList as $key=>$vo): ?>
        <tr>
          <th><?php echo $vo['id']; ?></th>
          <th><?php echo $vo['name']; ?></th>
          <th><?php echo $vo['email']; ?></th>
          <th><?php echo $vo['sex']==0?'男':'女'; ?></th>
          <th><?php echo $vo['city']; ?></th>
          <th><span class="layui-badge">VIP<?php echo $vo['level']; ?></span></th>
          <th><?php echo $vo['gold']; ?></th>
          <!-- <th><?php echo $vo['id']; ?></th> -->
          <th>
          	<a href="<?php echo url('User/edit',['id'=>$vo['id']]); ?>" class="layui-btn layui-btn-sm layui-btn">编辑</a>
            <a href="<?php echo url('Index/user/home',['id'=>$vo['id']]); ?>" class="layui-btn layui-btn-sm layui-btn">查看</a>
          </th>
        </tr>
        <?php endforeach; endif; else: echo "" ;endif; ?>
      </tbody>
    </table>

</div>


    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © lay论坛
    </div>
</div>
<script src="/fly_forum/public/static/layui/layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;

    });
</script>
</body>
</html>